package cn.javabb.core.service.sys;

import cn.javabb.core.base.BaseService;
import cn.javabb.core.entity.sys.DictDO;
import cn.javabb.core.mapper.sys.DictMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class DictService extends BaseService<DictDO> {
    @Autowired
    private DictMapper dictMapper;

    public boolean updateState(Integer id,Integer state){
        DictDO dict = new DictDO();
        dict.setId(id).setState(state);
        if(this.updateSelective(dict)>0)
            return true;
        return false;
    }

}
